LORD TIM'S SUPER AWESOME SPECIAL SCRIPT FOR...

===============
KLONE SOCCER!!!
===============

Original Lua file by LordTim:


It is set up so that all you have to do is create a scene 
(This works on any scene with the right areas, btw) and hook it up to the lua file.

When a player 1 actor goes into the p1scorearea, player 1 gets a point.
Easily editable variables are at the top of the lua file. 
You can switch between a timelimit based game or a score based game and the 
limits for both. You can also change the respawn time.
Score should be displayed at the top of each player's screen. Along with the time limit, 
if enabled.

Actors respawn in either spawn1 or spawn2, whichever is empty.
"give" areas will give the actor which enters it the gun, 
if the actor is owned by the player that corresponds to the area, 
and that player has the required points:
Scene also needs to have a brain. These can be placed anywhere.


Code:
Pistol - 1 Goal
SMG - 3 Goals
Shotgun - 6 Goals
Blunderbuss - 9 Goals
AK47 - 12 Goals
FlakCannon - 20 Goals



Areas required for scene to work: (Should be self explanatory names)


Code:
   P1ScoreArea
   P1Spawn1
   P1Spawn2
   
   P2ScoreArea
   P2Spawn1
   P2Spawn2
   
   P1GivePistol
   P1GiveSMG
   P1GiveShotgun
   P1GiveBlunderbuss
   P1GiveAK47
   P1GiveFlakCannon
   
   P2GivePistol
   P2GiveSMG
   P2GiveShotgun
   P2GiveBlunderbuss
   P2GiveAK47
   P2GiveFlakCannon


Finally, to hook up the scene to this lua file, and add it to the campaign screen, 
add this block of code after your scene's code:


Code:
AddActivity = GAScripted
   PresetName = SoccerScene
   SceneName = YOURSCENENAME
   ScriptFile = YOURRTE.rte/CloneSoccer.lua
   LuaClassName = SoccerMission
   InCampaignStage = 555
   TeamCount = 2
   PlayerCount = 2
   TeamOfPlayer1 = 0
   TeamOfPlayer2 = 1


(You can change the player count to use 4 players if you want)

P.S. I wrote this ~200 line code without testing a single bit. It should all work, 
but chances are I mispelled something along the way. Please tell me if there are 
any errors (Check the console), and I'll fix them as soon as I can.